#include <stdio.h> 
#include <stdint.h> 

int main(int argc, char **argv) {
    struct key {
        int zone;
        int guild;
    };
    static_assert(sizeof(key) == sizeof(uint64_t), "invaild key type\n");

    key k = { 1, 1};

    printf("%0x\n", *reinterpret_cast<uint64_t*>(&k));

    return 0;
}
